//
//  ZXUserTool.m
//  ZXOCWeiBo
//
//  Created by mac on 15/12/9.
//  Copyright © 2015年 itcast. All rights reserved.
//

#import "ZXUserTool.h"
#import "ZXHttpTool.h"
#import "ZXUserInfoParam.h"
#import "ZXUserInfoResult.h"

@implementation ZXUserTool

+(void)userInfoWithUrl:(NSString *)url params:(ZXUserInfoParam *)params success:(void(^)(ZXUserInfoResult *result))success failure:(void (^)(NSError *error))failure
{
    [self getWithUrl:url params:params resultClass:[ZXUserInfoResult class] success:success failure:failure];
    
//    [ZXHttpTool GET:url params:params.keyValues success:^(id responseObject) {
//        ZXUserInfoResult * result = [ZXUserInfoResult objectWithKeyValues:responseObject];
//        if (success) {
//            success(result);
//        }
//    } failure:^(NSError *error) {
//        if (failure) {
//            failure(error);
//        }
//    }];
}
@end
